home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaarrrrrrrraaaayyyy((((3333TTTTccccllll)))) aaaarrrrrrrraaaayyyy((((3333TTTTccccllll))))
-
-
-
- NNNNAAAAMMMMEEEE
- array - Manipulate array variables
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- aaaarrrrrrrraaaayyyy _o_p_t_i_o_n _a_r_r_a_y_N_a_m_e ?_a_r_g _a_r_g ...?
-
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- This command performs one of several operations on the variable given by
- _a_r_r_a_y_N_a_m_e. Unless otherwise specified for individual commands below,
- _a_r_r_a_y_N_a_m_e must be the name of an existing array variable. The _o_p_t_i_o_n
- argument determines what action is carried out by the command. The legal
- _o_p_t_i_o_n_s (which may be abbreviated) are:
-
- aaaarrrrrrrraaaayyyy aaaannnnyyyymmmmoooorrrreeee _a_r_r_a_y_N_a_m_e _s_e_a_r_c_h_I_d
- Returns 1 if there are any more elements left to be processed in an
- array search, 0 if all elements have already been returned.
- _S_e_a_r_c_h_I_d indicates which search on _a_r_r_a_y_N_a_m_e to check, and must have
- been the return value from a previous invocation of aaaarrrrrrrraaaayyyy
- ssssttttaaaarrrrttttsssseeeeaaaarrrrcccchhhh. This option is particularly useful if an array has an
- element with an empty name, since the return value from aaaarrrrrrrraaaayyyy
- nnnneeeexxxxtttteeeelllleeeemmmmeeeennnntttt won't indicate whether the search has been completed.
-
- aaaarrrrrrrraaaayyyy ddddoooonnnneeeesssseeeeaaaarrrrcccchhhh _a_r_r_a_y_N_a_m_e _s_e_a_r_c_h_I_d
- This command terminates an array search and destroys all the state
- associated with that search. _S_e_a_r_c_h_I_d indicates which search on
- _a_r_r_a_y_N_a_m_e to destroy, and must have been the return value from a
- previous invocation of aaaarrrrrrrraaaayyyy ssssttttaaaarrrrttttsssseeeeaaaarrrrcccchhhh. Returns an empty string.
-
- aaaarrrrrrrraaaayyyy eeeexxxxiiiissssttttssss _a_r_r_a_y_N_a_m_e
- Returns 1 if _a_r_r_a_y_N_a_m_e is an array variable, 0 if there is no |
- variable by that name or if it is a scalar variable.
-
- aaaarrrrrrrraaaayyyy ggggeeeetttt _a_r_r_a_y_N_a_m_e ?_p_a_t_t_e_r_n?
- Returns a list containing pairs of elements. The first element in |
- each pair is the name of an element in _a_r_r_a_y_N_a_m_e and the second |
- element of each pair is the value of the array element. The order |
- of the pairs is undefined. If _p_a_t_t_e_r_n is not specified, then all of|
- the elements of the array are included in the result. If _p_a_t_t_e_r_n is|
- specified, then only those elements whose names match _p_a_t_t_e_r_n (using|
- the glob-style matching rules of ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh) are included. If
- _a_r_r_a_y_N_a_m_e isn't the name of an array variable, or if the array
- contains no elements, then an empty list is returned.
-
- aaaarrrrrrrraaaayyyy nnnnaaaammmmeeeessss _a_r_r_a_y_N_a_m_e ?_p_a_t_t_e_r_n?
- Returns a list containing the names of all of the elements in the |
- array that match _p_a_t_t_e_r_n (using the glob-style matching rules of |
- ssssttttrrrriiiinnnngggg mmmmaaaattttcccchhhh). If _p_a_t_t_e_r_n is omitted then the command returns all |
- of the element names in the array. If there are no (matching) |
- elements in the array, or if _a_r_r_a_y_N_a_m_e isn't the name of an array |
- variable, then an empty string is returned.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaarrrrrrrraaaayyyy((((3333TTTTccccllll)))) aaaarrrrrrrraaaayyyy((((3333TTTTccccllll))))
-
-
-
- aaaarrrrrrrraaaayyyy nnnneeeexxxxtttteeeelllleeeemmmmeeeennnntttt _a_r_r_a_y_N_a_m_e _s_e_a_r_c_h_I_d
- Returns the name of the next element in _a_r_r_a_y_N_a_m_e, or an empty
- string if all elements of _a_r_r_a_y_N_a_m_e have already been returned in
- this search. The _s_e_a_r_c_h_I_d argument identifies the search, and must
- have been the return value of an aaaarrrrrrrraaaayyyy ssssttttaaaarrrrttttsssseeeeaaaarrrrcccchhhh command.
- Warning: if elements are added to or deleted from the array, then
- all searches are automatically terminated just as if aaaarrrrrrrraaaayyyy
- ddddoooonnnneeeesssseeeeaaaarrrrcccchhhh had been invoked; this will cause aaaarrrrrrrraaaayyyy nnnneeeexxxxtttteeeelllleeeemmmmeeeennnntttt
- operations to fail for those searches.
-
- aaaarrrrrrrraaaayyyy sssseeeetttt _a_r_r_a_y_N_a_m_e _l_i_s_t
- Sets the values of one or more elements in _a_r_r_a_y_N_a_m_e. _l_i_s_t must |
- have a form like that returned by aaaarrrrrrrraaaayyyy ggggeeeetttt, consisting of an even |
- number of elements. Each odd-numbered element in _l_i_s_t is treated as|
- an element name within _a_r_r_a_y_N_a_m_e, and the following element in _l_i_s_t |
- is used as a new value for that array element.
-
- aaaarrrrrrrraaaayyyy ssssiiiizzzzeeee _a_r_r_a_y_N_a_m_e
- Returns a decimal string giving the number of elements in the array.|
- If _a_r_r_a_y_N_a_m_e isn't the name of an array then 0 is returned.
-
- aaaarrrrrrrraaaayyyy ssssttttaaaarrrrttttsssseeeeaaaarrrrcccchhhh _a_r_r_a_y_N_a_m_e
- This command initializes an element-by-element search through the
- array given by _a_r_r_a_y_N_a_m_e, such that invocations of the aaaarrrrrrrraaaayyyy
- nnnneeeexxxxtttteeeelllleeeemmmmeeeennnntttt command will return the names of the individual elements
- in the array. When the search has been completed, the aaaarrrrrrrraaaayyyy
- ddddoooonnnneeeesssseeeeaaaarrrrcccchhhh command should be invoked. The return value is a search
- identifier that must be used in aaaarrrrrrrraaaayyyy nnnneeeexxxxtttteeeelllleeeemmmmeeeennnntttt and aaaarrrrrrrraaaayyyy
- ddddoooonnnneeeesssseeeeaaaarrrrcccchhhh commands; it allows multiple searches to be underway
- simultaneously for the same array.
-
-
- KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
- array, element names, search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-